﻿
function CheckMessage()
{
    $.ajax({
        type: "GET",
        url: "/api/Message/CheckMessage",
        success: function (has)
        {
            if (has == "-99")
            {
                return;
            }
            if (has > 0)
            {
                $.messager.show('短消息提示', "您有" + has + "封消息, 请注意查收。");

                //允许在状态栏继续提醒
                //window.status = "您有短信啦！您有" + has + "封消息请注意查收。";
            }
            else
            {
                //window.status = "没有短信。";
            }
        }
    }); 
 
}

//setInterval("CheckMessage()", 10000);
 